<html lang="zh-cn" xmlns：th="http://www.thymeleaf.org" xmlns:th="http://www.w3.org/1999/xhtml">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>用户编辑</title>
    <link rel="stylesheet" href="../../../static/admin/bower_components/bootstrap/dist/css/bootstrap.min.css"
          th:href="@{/admin/bower_components/bootstrap/dist/css/bootstrap.min.css}">
</head>
<form class="form-horizontal" th:action="@{/editUser}" action="admin/editNav"
      method="post" style="width:1200px;margin-top:20px">

    <input name="id" type="text"  th:value="${user!=null?user.id:''}" style="display:none">

    <div class="form-group">
        <label for="InputUserName" class="col-sm-2 control-label">用户名</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" th:value="${user!=null?user.username:''}"
                   id="InputUserName" name="userName" placeholder="用户名">
        </div>
    </div>

    <div class="form-group">
        <label for="InputPassWord" class="col-sm-2 control-label">密码</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" th:value="${user!=null?user.password:''}"
                   id="InputPassWord" name="passWord" placeholder="密码">
        </div>
    </div>

    <div class="form-group">
        <label for="inputSex" class="col-sm-2 control-label">性别</label>
        <div class="col-sm-10">
            <select name="sex" class="form-control">
                <option th:value="1">男</option>
                <option th:value="0">女</option>
            </select>
        </div>
    </div>

    <div class="form-group">
        <label for="InputIdcard" class="col-sm-2 control-label">身份证号</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" th:value="${user!=null?user.idcard:''}"
                   id="InputIdCard" name="idCard" placeholder="身份证号">
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">提交</button>
        </div>
    </div>
</form>

</body>
</html>